

import 'src/assets/css/rest.css';
import 'src/assets/css/common.css'
import 'src/assets/css/theme.less'

import {LoadingPlugin,ToastPlugin} from 'vux'

import Vue from 'vue';
import filters from 'src/filters';
import ImgSrcPlugin from 'src/plugins/img_src_plugin'

import './bdtj'

import VueLazyload from 'vue-lazyload'

Vue.config.productionTip = false; // 是否展示生产过程中的提示

//注册自定义过滤器
Object.keys(filters).forEach(key => Vue.filter(key, filters[key]));

Vue.use(ImgSrcPlugin);
Vue.use(LoadingPlugin);
Vue.use(ToastPlugin);

Vue.use(VueLazyload, {
  error: `${cdnBase}/static/img/imgerror.jpg`,
  loading: `${cdnBase}/static/img/loading.png`,
  preLoad: 1,
  attempt: 1
});

//解决click点击300毫秒延时问题
import FastClick from 'fastclick';
FastClick.attach(document.body);
